DateTime

Common Functions

Method Name Parameter Return Type Usage Example
getInstance synchronized DateTimeHelper DateTimeHelper.getInstance().timeZone=zone;
setTimeZone zone:String synchronized void To set Time zone DateTimeHelper.setTimeZone(zone);
getCurrentDate synchronized Date To get current date DateTimeHelper.getCurrentDate();
getDate date String synchronized Date DateTimeHelper.getDate(date);
getTimeZone String To get timeZone DateTimeHelper.getTimeZone();
getTimeStamp String To get TimeStamp DateTimeHelper.getTimeStamp();
isCurrentDateEquelTo date:String boolean DateTimeHelper.isCurrentDateEquelTo(date);
isCurrentDateGraterThan date:String boolean DateTimeHelper.isCurrentDateGraterThan(date);
isCurrentDateLesserThan date:String boolean DateTimeHelper.isCurrentDateLesserThan(date);
getCurrentDateString String DateTimeHelper.getCurrentDateString();
isDateEquelTo date1: String,date2:String boolean DateTimeHelper.isDateEquelTo(date1,date2);
getDateWithFormatAndZone dateFormat: String,timeZone:String,floater:Long string DateTimeHelper.getDateWithFormatAndZone(dateFormat,timeZone,floater);